﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.PO;
using Com.CMS263.DAO;

namespace Com.CMS263.BLL
{
    public class tvStationPeopleBLL:BaseBLL<TvStationPeople>
    {
        public TvStationPeople tvP = new TvStationPeople();
        public TvStationPeopleDAO dao = new TvStationPeopleDAO();
        public override TvStationPeople GetModel()
        {
            return tvP;
        }
       /// <summary>
        /// 根据电视台Id查询主持人
       /// </summary>
       /// <param name="tvId">电视台Id</param>
       /// <param name="count">查询几个，all为全部</param>
       /// <returns></returns>
        public IList<TvStationPeople> FindListByTvId(int tvId,string count)
        {
            return dao.FindListByTvId(tvId,count);
        }

        public int GetResultCount()
        {
            return dao.GetResultCount();
        }

        public IList<TvStationPeople> FindList(int page, int pagesize)
        {
            return dao.FindList(page,pagesize);
        }
    }
}
